﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class control_ProductMenu : System.Web.UI.UserControl
{
    public string rootPath;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Page.ToString().Contains("index"))
            rootPath = "./public/";
        else
            rootPath = String.Empty;
    }

    protected void productCategoryMenuData_Selected(object sender, ObjectDataSourceStatusEventArgs e)
    {
        if (e.Exception != null)
        {
            e.ExceptionHandled = true;
            Response.Redirect("~/public/error.aspx");
        }
    }
}
